﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace markdown_picture_packer.backend
{
    public class Result
    {
        // 状态 成功还是失败
        public readonly bool Status;
        // 消息内容
        public readonly string Message;
        private Result(bool status, string message)
        {
            Status = status;
            Message = message;
        }
        public static Result Success(string message)
        {
            return new Result(true, message);
        }
        public static Result Fail(string message)
        {
            return new Result(false, message);
        }
    }
}
